package cn.edu.seu.ssny.service;

import cn.edu.seu.ssny.entity.Device;
import cn.edu.seu.ssny.entity.StatisticsPowercostRateConfig;
import cn.edu.seu.ssny.entity.StatisticsPowercostRateType;
import cn.edu.seu.ssny.service.support.IBaseService;

import java.util.List;

public interface IStatisticsPowercostRateConfigService extends IBaseService<StatisticsPowercostRateConfig, Integer> {

    /**
     * 根据statisticsPowercostRateType查询
     *
     * @param statisticsPowercostRateType
     * @return
     */
    List<StatisticsPowercostRateConfig> findStatisticsPowercostRateConfigsByStatisticsPowercostRateType(StatisticsPowercostRateType statisticsPowercostRateType);

    /**
     * 功能描述:
     * <查找
     * @param statisticsPowercostRateType
     * @param device
     * @return
     */
    StatisticsPowercostRateConfig findByStatisticsPowercostRateTypeAndDevice(StatisticsPowercostRateType statisticsPowercostRateType, Device device);
}
